package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcPartnersBasicInformationMapper;
import com.ktgj.other.domain.RcPartnersBasicInformation;
import com.ktgj.other.service.IRcPartnersBasicInformationService;

/**
 * 专车合作商基本信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcPartnersBasicInformationServiceImpl implements IRcPartnersBasicInformationService 
{
    @Autowired
    private RcPartnersBasicInformationMapper rcPartnersBasicInformationMapper;

    /**
     * 查询专车合作商基本信息
     * 
     * @param partnerid 专车合作商基本信息ID
     * @return 专车合作商基本信息
     */
    @Override
    public RcPartnersBasicInformation selectRcPartnersBasicInformationById(Long partnerid)
    {
        return rcPartnersBasicInformationMapper.selectRcPartnersBasicInformationById(partnerid);
    }

    /**
     * 查询专车合作商基本信息列表
     * 
     * @param rcPartnersBasicInformation 专车合作商基本信息
     * @return 专车合作商基本信息
     */
    @Override
    public List<RcPartnersBasicInformation> selectRcPartnersBasicInformationList(RcPartnersBasicInformation rcPartnersBasicInformation)
    {
        return rcPartnersBasicInformationMapper.selectRcPartnersBasicInformationList(rcPartnersBasicInformation);
    }

    /**
     * 新增专车合作商基本信息
     * 
     * @param rcPartnersBasicInformation 专车合作商基本信息
     * @return 结果
     */
    @Override
    public int insertRcPartnersBasicInformation(RcPartnersBasicInformation rcPartnersBasicInformation)
    {
        return rcPartnersBasicInformationMapper.insertRcPartnersBasicInformation(rcPartnersBasicInformation);
    }

    /**
     * 修改专车合作商基本信息
     * 
     * @param rcPartnersBasicInformation 专车合作商基本信息
     * @return 结果
     */
    @Override
    public int updateRcPartnersBasicInformation(RcPartnersBasicInformation rcPartnersBasicInformation)
    {
        return rcPartnersBasicInformationMapper.updateRcPartnersBasicInformation(rcPartnersBasicInformation);
    }

    /**
     * 批量删除专车合作商基本信息
     * 
     * @param partnerids 需要删除的专车合作商基本信息ID
     * @return 结果
     */
    @Override
    public int deleteRcPartnersBasicInformationByIds(Long[] partnerids)
    {
        return rcPartnersBasicInformationMapper.deleteRcPartnersBasicInformationByIds(partnerids);
    }

    /**
     * 删除专车合作商基本信息信息
     * 
     * @param partnerid 专车合作商基本信息ID
     * @return 结果
     */
    @Override
    public int deleteRcPartnersBasicInformationById(Long partnerid)
    {
        return rcPartnersBasicInformationMapper.deleteRcPartnersBasicInformationById(partnerid);
    }
}
